<div data-role="page">

  <div data-role="header" data-position="inline">
    <%= link_to "Back", :action => :show, :id => @question.object %>
    <h1>Edit <%= @question.id%></h1>
    <%= link_to "Delete", :action => :delete, :id => @question.object %>
  </div>

  <div data-role="content">
    <form method="POST" action="<%= url_for :action => :update %>">
      <input type="hidden" name="id" value="<%= @question.object %>"/>
      <table>
          
          <tr>
              <td class="itemLabel">Id: </td>
              <td class="itemValue"><input type="text" name="question[id]" value="<%= @question.id %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Title: </td>
              <td class="itemValue"><input type="text" name="question[title]" value="<%= @question.title %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Status: </td>
              <td class="itemValue"><input type="text" name="question[status]" value="<%= @question.status %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Student: </td>
              <td class="itemValue"><input type="text" name="question[student_id]" value="<%= @question.student_id %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Grade: </td>
              <td class="itemValue"><input type="text" name="question[grade_id]" value="<%= @question.grade_id %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Subject: </td>
              <td class="itemValue"><input type="text" name="question[subject_id]" value="<%= @question.subject_id %>"/></td>
          </tr>
          
      </table>
      <input type="submit" value="Update"/>
    </form>
  </div>

</div>
